fix flush of a closed file handle
authorJoey Hess <joeyh@joeyh.name>
Fri, 30 Sep 2022 18:02:31 +0000 (14:02 -0400)
committerJoey Hess <joeyh@joeyh.name>
Fri, 30 Sep 2022 18:02:31 +0000 (14:02 -0400)
commit49ee07f93dc3281084247b77eb7653a2bad5fad8
tree103c2b221c00bff92bfc3240d0b158103a5a29e5
parent8d8f7ee884d65ad96fb9c4d2d93f02803f680121
fix flush of a closed file handle

Avoids displaying warning about git-annex restage needing to be run in
situations where it does not.

Closing a handle flushes it anyway, so no need for an explict flush. The
handle does get closed twice, but that's fine, the second one does nothing.

Sponsored-by: Dartmouth College's DANDI project
CHANGELOG
Git/UpdateIndex.hs
doc/bugs/windows__58___needlessly_reminded_to_run___96__restage__96__.mdwn